package cn.iocoder.yudao.module.mqtt.controller.admin.devicelatestlog.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 数据上传新增/修改 Request VO")
@Data
public class DeviceLatestLogSaveReqVO {

    @Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13642")
    private Long id;

    @Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6888")
    @NotNull(message = "设备ID不能为空")
    private Long deviceId;

    @Schema(description = "设备名称", example = "王五")
    private String deviceName;

    @Schema(description = "设备唯一码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "设备唯一码不能为空")
    private String deviceKey;

    @Schema(description = "网关ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11755")
    @NotEmpty(message = "网关ID不能为空")
    private String gatewayId;

    @Schema(description = "类型", example = "2")
    private String requestType;

    @Schema(description = "发送包内容")
    private String requestBody;

    @Schema(description = "响应包内容")
    private String responseBody;

    @Schema(description = "上送状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "上送状态不能为空")
    private String sendStatus;

    @Schema(description = "上送成功", example = "2")
    private String responseStatus;



    private String lisDay;//日产流量
    private String lisAll;//全部流量
    private String lisYear; //年产水量
    private LocalDateTime lisTime; //时间
    private String listMonth; //月产水量

    private String lisSun; //产水流量
    private String lisSunAll;//产水累积量
    private LocalDateTime lisSunTime; //产水时间

}